<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>模型列表</title>
	<hdjs />
	<js file='__PUBLIC__/js/mod.base.js' />
	<css file="__PUBLIC__/Css/mod.base.css" />
</head>
<body>
	
	
		<form action="{:U('Category/update_order')}" method="post" class='hd-form'>
				<div class="hd-menu-list">
					<ul>
						<li class="active">
							<a href="javascript:;" >
								模型列表
							</a>
						</li>
						<li>
							<a href="{:U('Model/add')}">
								添加模型
							</a>
						</li>
						<li>
							<a href="{:U('Model/update_cache')}">
								更新缓存
							</a>
						</li>
					</ul>
				</div>
				<table class="hd-table hd-table-list hd-form">
					<thead>
						<tr>
							<td class="hd-w30">MID</td>
							<td>模型名称</td>
							<td class="hd-w100">表名称</td>
							<td class="hd-w180">操作</td>
						</tr>
					</thead>
					<if condition='$data'>
						<foreach name='data' item='v'>
						<tr>
							
							<td>{$v.mid}</td>
							
							<td>{$v.remark}</td>
							<td>{$v.name}</td>
						
							<td>
							
							<a href="{:U('Field/index',array('mid'=>$v['mid']))}">
								字段管理
							</a>
							<span class="line">|</span>
							<a href="{:U('Model/edit',array('mid'=>$v['mid']))}">
								修改
							</a>
							<span class="line">|</span>
							<a href="javascript:var del='{:U('Model/del',array('mid'=>$v['mid']))}';hd_modal_confirm('确认删除吗？',del)">
								删除
							</a></td>
						</tr>
						</foreach>
						<else/>
						<tr>
							<td colspan="5">没有找到符合的记录</td>
						</tr>
					</if>
					</table>
			
		</form>



</body>
</html>